/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-05-25
 * Time: 8:48
 * */

/**
 * 快期末考试了
 */
interface IPlaying {
    void game();
}
class Peo {
    protected String name;
    protected int age;

    public Peo(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
public class Test extends Peo implements IPlaying {

    public Test(String name, int age) {
        super(name, age);
    }

    public static void main(String[] args) {
        Test test = new Test("dings",18);
        test.game();
    }

    @Override
    public void game() {
        System.out.println(this.name+"  "+this.age+"岁"+" 正在玩游戏");
    }
}
